<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="content-type" content="text/html;charset=utf-8">
  <link rel="stylesheet" href="../../../layui/css/layui.css" media="all">
</head>
<body class="layui-layout-body">

	<div style="width: 100%;text-align: center;margin-top: 100px;">
		<button type="button" class="layui-btn layui-btn-lg" id="checkBtn"><i class="fa fa-users"></i> 请选择出席人员</button>
	</div>

	<!-- 页面模板 -->
	<script id="choose_tpl" type="text/html">
		<div style="display:none;" id="choose_dom">
			<style type="text/css" style="display:none;">
				.layui-form-item .layui-form-checkbox[lay-skin=primary] {width: 93px !important;}
				.layui-form-checkbox[lay-skin=primary]{padding-left:23px !important;}
				.layui-elem-field.layui-field-title{margin: 5px 10px !important;}
				.layui-elem-field legend{width: auto;border-bottom: 0 !important;margin-bottom:0 !important; }
				.search_item{position: relative; height: 48px; padding: 10px 0 0 0;margin-bottom:0 !important;line-height:37px;}
				.search_inline{position: absolute;right: 0px;margin-right: 0px!important;;}
				.open{text-align: center;line-height: 32px;}
				.open button{width: 10%; line-height: 26px; height: 24px;background: #f7f7f7;margin-left: 0%;}
				.open button i{color:#646464;}
				.qdqjqx{ padding: 20px;text-align: center;}
				.layui-input-block{margin-left:0px !important;}
				.layui-collapse{ margin-top:10px !important;}
				.search_item .layui-form-checkbox{position: absolute;right: 160px;}
				.layui-btn-group{font-size: 0px !important;}
				#choose_dom{padding:0 10px;}
				div,span,h2{font-size: 13px !important;}
				/*.layui-layer-setwin{position: absolute; right: 32px; top: 22px;}*/
			</style>
			{{# var fn = (value)=>value.length>0&&value.filter(item => {return item.checked === undefined||item.checked===false;}).length==0;}}
			<form class="layui-form" action="">
			  <div class="layui-form-item search_item">
				<input type="checkbox" name="" class="searchAll" lay-skin="primary" title="全选" lay-filter="checkPartAll">
		    	<div class="layui-input-inline search_inline">
		      		<input type="text" name="title" lay-verify="name" autocomplete="off" placeholder="请输入姓名" class="layui-input">
		    	</div>
		  	  </div>
			  <!--<div class="layui-collapse" lay-accordion="">-->
			  <div class="layui-collapse">
				{{#  layui.each(d.data, function(key, value){ }}
				  <div class="layui-colla-item">
				    <h2 class="layui-colla-title"><input type="checkbox" name="" lay-skin="primary" title="全选" lay-filter="checkPartAll" {{ fn(value)?'checked=""':'' }} {{ value.length==0?'disabled=""':'' }}> 【{{ key }}】</h2>
				    <div class="layui-colla-content {{ d.type=='search'&&value.length>0?'layui-show':'' }} ">
					   	<div class="layui-form-item" style="margin-bottom:0px;">
						    <div class="layui-input-block">
						  	{{#  layui.each(value, function(index, item){ }}
								{{# if(index<=d.hideCount-1){ }}
									<input type="checkbox" name="like_{{ item[d.targetHideFieldId] }}" lay-skin="primary" title="{{ item[d.targetShowFieldName] }}" lay-filter="status" {{ item.checked?'checked=""':'' }} >
						  		{{#  }else{ }}
									{{# if(index==d.hideCount){ }}
										<div style="display:none;">
						  			{{#  } }}
										<input type="checkbox" name="like_{{ item[d.targetHideFieldId] }}" lay-skin="primary" title="{{ item[d.targetShowFieldName] }}" lay-filter="status" {{ item.checked?'checked=""':'' }} >
									{{# if(index==value.length-1){ }}
										</div>
										<div class="open">
											<button type="button" class="layui-btn layui-btn-warm layui-btn-radius slideBlock"><i class="layui-icon layui-icon-down"></i></button>
										</div>
						  			{{#  } }}
						  		{{#  } }}
						  	{{#  }); }}
							</div>
						</div>
					</div>
				</div>
				{{#  }); }}
			  </div>
			  <div class="qdqjqx">
				<button class="layui-btn layui-btn-sm" id="rd_yes" lay-filter="">确  定</button>
				<button class="layui-btn layui-btn-sm" id="rd_no" lay-filter="">取  消</button>
			  </div>
			</form>
		</div>
	</script>

	<!-- 按钮组模板 -->
	<script id="btn_group_tpl" type="text/html">
		<div class="layui-btn-group">
		{{#  layui.each(d, function(index, item){ }}
		  <button type="button" class="layui-btn layui-btn-sm btn_group" data-field="{{ item.fieldId}}" data-num="{{ index }}">{{ item.fieldName }}</button>
		{{#  }); }}
		</div>
	</script>


	<script src="../../../layui/layui.js"></script>
	<script src="index.js"></script>
</body>
</html>